﻿@using MvcApplication2.Controllers
@using MvcApplication2.Models
@{
    var messageCount = UserMessageHelper.GetNewMessageCount();
}
<a href='@Url.Action("Messages", "User")' ><i class="icon-envelope icon-white"></i> Messages
    @if (messageCount > 0)
    {
        <span class='badge badge-info'>@messageCount</span>
    }</a> 